/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author TQNINH
 */
public class CustomerAccount {
    String accountType;
    Double balance;
    
    public CustomerAccount(String accType, Double bal){
        this.accountType = accType;
        this.balance = bal;
    }
    
    public String getAccountType(){
        return accountType;
    }
    
    public void setAccountType(String accType){
        accountType = accType;
    }
    
    public double getBalance(){
        return balance;
    }
    
    public void setBalance(double bal){
        balance = bal;
    }
    
    synchronized public void InfoAccount(){
        System.out.println("["+ this.accountType + ", " + this.balance + "]");
    }
}